package com.zy.view

import android.graphics.Canvas
import android.graphics.Paint

//Point 与 Point 之间的辅助连线（固定不变的）
class PointLine(
    var startCenterX: Int,
    var startCenterY: Int,
    var endCenterX: Int,
    var endCenterY: Int,
    val d: Int
) {
    fun draw(canvas: Canvas, paint: Paint?) {
        canvas.drawLine((startCenterX*d).toFloat(),
            (startCenterY*d).toFloat(), (endCenterX*d).toFloat(), (endCenterY*d).toFloat(), paint!!)
    }
}